<template>
    <CRUD :config="config" :apis="apis" />
</template>

<script>
import { articleCateList, articleCateAdd, articleCateUpdate, articleCateDel } from '@/api'
export default {
    data() {
        return {
            config: {
                tableCols: [{
                    label: 'ID',
                    prop: 'id'
                }, {
                    label: '文章类别',
                    prop: 'name'
                }, {
                    label: '文章类别别名',
                    prop: 'alias'
                }],
                dialogCols: [{
                    label: '文章类别',
                    prop: 'name'
                }, {
                    label: '文章类别别名',
                    prop: 'alias'
                }],
                dialogLabelWidth: '120px',
                dialogWidth: '480px',
                isPage: false
            },
            apis: {
                refresh: articleCateList,
                add: articleCateAdd,
                update: articleCateUpdate,
                del: articleCateDel
            }
        }
    }
}
</script>